* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: background .2s;
    -moz-transition: background .2s;
    -ms-transition: background .2s;
    -o-transition: background .2s;
    transition: background .2s;
    outline: 0;
}

body {
    color: #ffffff;
}

h1 {
    text-align: center;
}



.task-list
{
    margin: 15px 0;
}

.fr {
    float: right;
}

input,
.task-item,
.task-detail-mask,
textarea,
.task-detail,
button {
    border-radius: 8px;/*添加圆角边框*/
    padding: 10px;
}

textarea,
button,
input[type=text],
input[type=date]{
    border: 0;
}

textarea,
input[type=text], input[type=date] {
    width: 100%;
    display: block;
    background: #eeeeee;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
    -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);

}

textarea {
    min-height: 100px;
}

input[type=text]:hover,
textarea:hover,
input[type=date]:hover,
input[type=date]:focus,
input[type=date]:focus {

    background: #ffffff;

}

.add-task input[type=text]{

    float: left;
    width: 84%;
    margin-left: 2%;
    margin-right: 2%;
}

[type=submit], [type=button] {
    background: #f6ff7a;
}

.add-task [type=submit],
[type=button]{

    width: 10%;
    margin-right: 2%;
}

[type=submit]:hover,
[type=button]:hover
{

    background: #d6ff4a;
}

.add-task [type=submit], .task-item{

    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
    -moz-box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
}

button {
    display: inline-block;
    cursor: pointer;
    color: #333333;
}

.task-item
{
    background: rgba(180, 180, 180, 0.59);
    color: #333333;
    margin-bottom: 4px;/*下外边距*/
    cursor: pointer;
}

.task-item.completed {

    color: #aaaaaa;
}

.task-item.completed:after {

    content: " ";
    height: 1px;
    background: #aaaaaa;
    width: 98%;
    position: relative;
    top: -8px;
    float: right;
    display: block;
}

.task-item:hover
{
    background: #dddddd;
}

.task-detail {
    background: #ffffff;
    color: #333333;
    width: 400px;
    height: 300px;
    padding: 10px;
    position:absolute;
    left:50%;    /* 定位父级的50% */
    top:50%;
    transform: translate(-50%,-50%); /*自己的50% */
    -webkit-box-shadow:   0 1px 2px 1px rgba(0, 0, 0, .1);
    -moz-box-shadow:   0 1px 2px 1px rgba(0, 0, 0, .1);
    box-shadow:   0 1px 2px 1px rgba(0, 0, 0, .1);

}

.task-detail .content {
    padding: 5px;
    font-weight: 900;
    cursor: pointer;
}

.task-detail .input-item{
    margin-bottom: 10px;
}

.task-detail,
.task-detail-mask {
    position: absolute;
    display: none;
}

.task-detail-mask {

    position: fixed;/*生成绝对定位的元素，相对于浏览器窗口进行定位*/
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background: rgba(10, 10, 10, .3);

}

.task-content {
    font-weight: 900;
    margin-left: 10px;
}

.action {
    color: #999999;
    font-size: 80%;
}

.action.delete:hover {
     color: red;
}

.action.detail:hover {
    color: #8bbc50;
}


.anchor {
    cursor: pointer;
    width: 27%;
    height: 13%;
    position: absolute;
    top: 50%;
}

.alerter {
    width: 0;
    height: 0;
}